<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>item</title>
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
<?php echo Lin_Grid::includeSource() ?>
<?php echo Lin_Loader::validation() ?>
<script language="javascript">
$(function(){
	$(".button-div a").button();

});

function editItem(id)
{
	location.href  = '/product/index/edit/' + id;
}

function delItem(id)
{
	if (confirm('Confirm to del ?'))
	{
		location.href = '/product/index/_del/' + id;
	}
}
</script>
</head>
<body>
<div class="container">
  <div class="title"><h3>Product List</h3></div>
  <div class="button-div">
  	<a href="/product/index/add">Add item</a>
  	<a href="#" id="edit-button">Edit item</a>
  	<a href="#" id="del-button">Del item</a>
  	<a href="/product/index/_countsalesprice" id="sale-button">Calculate sales price</a>
  </div>
  <?php echo $this->itemList(); ?>
</div>
</body>
</html>